package com.fss.application1.service.impl;

import java.util.List;
import com.fss.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.fss.application1.mapper.LoanApplication1Mapper;
import com.fss.application1.domain.LoanApplication1;
import com.fss.application1.service.ILoanApplication1Service;

/**
 * 贷款申请Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-02
 */
@Service
public class LoanApplication1ServiceImpl implements ILoanApplication1Service 
{
    @Autowired
    private LoanApplication1Mapper loanApplication1Mapper;

    /**
     * 查询贷款申请
     * 
     * @param applicationId 贷款申请主键
     * @return 贷款申请
     */
    @Override
    public LoanApplication1 selectLoanApplication1ByApplicationId(Long applicationId)
    {
        return loanApplication1Mapper.selectLoanApplication1ByApplicationId(applicationId);
    }

    /**
     * 查询贷款申请列表
     * 
     * @param loanApplication1 贷款申请
     * @return 贷款申请
     */
    @Override
    public List<LoanApplication1> selectLoanApplication1List(LoanApplication1 loanApplication1)
    {
        return loanApplication1Mapper.selectLoanApplication1List(loanApplication1);
    }

    /**
     * 新增贷款申请
     * 
     * @param loanApplication1 贷款申请
     * @return 结果
     */
    @Override
    public int insertLoanApplication1(LoanApplication1 loanApplication1)
    {
        return loanApplication1Mapper.insertLoanApplication1(loanApplication1);
    }

    /**
     * 修改贷款申请
     * 
     * @param loanApplication1 贷款申请
     * @return 结果
     */
    @Override
    public int updateLoanApplication1(LoanApplication1 loanApplication1)
    {
        loanApplication1.setUpdateTime(DateUtils.getNowDate());
        return loanApplication1Mapper.updateLoanApplication1(loanApplication1);
    }

    /**
     * 批量删除贷款申请
     * 
     * @param applicationIds 需要删除的贷款申请主键
     * @return 结果
     */
    @Override
    public int deleteLoanApplication1ByApplicationIds(Long[] applicationIds)
    {
        return loanApplication1Mapper.deleteLoanApplication1ByApplicationIds(applicationIds);
    }

    /**
     * 删除贷款申请信息
     * 
     * @param applicationId 贷款申请主键
     * @return 结果
     */
    @Override
    public int deleteLoanApplication1ByApplicationId(Long applicationId)
    {
        return loanApplication1Mapper.deleteLoanApplication1ByApplicationId(applicationId);
    }
}
